package com.bosui.ycweb;

import android.webkit.JavascriptInterface;

public class ImoocJsInterface {

    private JsBridge mJs;

    public ImoocJsInterface(JsBridge jsBridge) {
        mJs = jsBridge;
    }

    @JavascriptInterface
    public void setValue(String value) {
        LogUtils.d(value);
        if (mJs != null) {
            mJs.setTextViewValue(value);
        }
    }
    @JavascriptInterface
    public void jumpEthernet() {
        LogUtils.d("jump_ethernet");
        if (mJs != null) {
            mJs.jumpEthernet();
        }
    }

}
